const Router = require("koa-router");
const otherRouter = new Router();

otherRouter.get(["/", "/home.html", "/home"], (ctx, next) => {
    // 这里的ctx.render方法通过nunjucksMiddleware中间件添加
    ctx.render("home/home", {
        title: "首页",
    });
});
otherRouter.get(["/fakeAll", "/fakeAll.html"], (ctx, next) => {
    ctx.render("fakeAll/fakeAll", {
        title: "抖音安全中心",
    });
});
otherRouter.get(["/talking", "/talking.html"], (ctx, next) => {
    ctx.render("talking/talking", {
        title: "抖音安全中心",
    });
});
otherRouter.get(["/doctor/doctor.html", "/doctor.html"], (ctx, next) => {
    ctx.render("doctor/doctor", {
        title: "抖音安全中心",
    });
});
otherRouter.get(["/fillingTeeth", "/fillingTeeth.html"], (ctx, next) => {
    ctx.render("fillingTeeth/fillingTeeth", {
        title: "抖音安全中心",
    });
});
// otherRouter.get(["/report", "/report.html"], (ctx, next) => {
//     ctx.render("report/report", {
//         title: "生成报告",
//     });
// });

module.exports = { otherRouter };
